const div1 = document.getElementById('div1')
div1.addEventListener('click', (e) => {
    const target = e.target
    if (target.nodeName === 'A') {
        alert(target.innerHTML)
    }
})
